package com.work.mybatis.controller;

import com.work.mybatis.model.UserInfo;
import com.work.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-05-22
 * Time:21:53
 */
@RequestMapping("/user")
@RestController
public class UserController {
    @Autowired//注入
    private UserService userService;
    @RequestMapping("/getUserAll")
    public List<UserInfo> getUserAll(){
        return userService.getUserAll();
    }
}
